package com.example;

import com.example.mapper.CustomerMapper;
import com.example.service.CustomerService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class test {
    @Autowired
    private CustomerMapper mapper;
    @Autowired
    private CustomerService customerService;
    @Test
    public void test1(){
        System.out.println(mapper.selectById(1));
    }
    @Test
    public void testrollback(){
        customerService.testrollback();
    }
}
